package com.mrd.gtimp.business.repository;

import com.mrd.gtimp.business.entity.CargoDeclaRecord;
import com.mrd.spring.repository.BaseRepository;

import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by dengdc on 2017/5/25.
 */
@Repository
public interface CargoDeclaRecordDao extends BaseRepository<CargoDeclaRecord, String> {
    CargoDeclaRecord findByDid(String did);
    List<CargoDeclaRecord> findByDidIn(List<String> didList);
    List<CargoDeclaRecord> findByStatusNotIn(List<String> status);
    List<CargoDeclaRecord> findByStatusIn(List<String> status);
    CargoDeclaRecord findByBusinessNo(String businessNo);
    CargoDeclaRecord findByDidAndUploadWay(String did, String uploadWay);
}
